const Router = require("koa-router");

const router = new Router({
  prefix: "/api",
});

const {
  articleAll,
  articleAdd,
  articleDel,
  articleUpdate,
} = require("../controll/article");

router.get("/all", articleAll);
router.post("/add", articleAdd);
router.delete("/del/:id", articleDel);
router.post("/update", articleUpdate);

module.exports = router;
